咕咕番[漫].js 3.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. //咕咕番发布页:gugu01.cc
  2. var rule = {
  3. title: '咕咕番[漫]',
  4. host: "https://www.gugu3.com",
  5. class_name: "连载日漫&完结日漫&剧场&特摄",
  6. class_url: "6&7&21&23",
  7. //class_parse: '.head-nav li;a&&Text;a&&href;/(\\d+)\.html',
  8. searchUrl: '/index.php/vod/search/page/fypage/wd/**.html',
  9. searchable: 2,
  10. quickSearch: 0,
  11. headers: {
  12. 'User-Agent': 'MOBILE_UA',
  13. },
  14. url: '/index.php/api/vod#type=fyclassfyfilter&page=fypage',
  15. filterable: 0,
  16. filter:'H4sIAAAAAAAAA+2X3U4TQRiG72WPOZhtpSC3YjhYyUaJFROKJoSQgAUsbYOLESqhFtA0FGmltcS0NMDNdPbnLpxl5vtJPOmZmMzZPu+7/Xbe2Zn5umtOzpl7tua88ledOWch7xUKzpSz5L32FUa9kWxUFL/z8m/9h/uWlCy3W0mxlcoKnPUprUbn+3I4MqoB8GR3Xzb7xjMAXhg0ova+8Qygt9eKgh3wNODz7vaS7yfwPA34u1pTDgbwOw3gJZ3PYf/AeAawZqkXFrehpgas+WsUbpWgpgasedIfDwOoqQGz73xKji4guwas2anGpQbU1IBjuWyE5Q0YiwbwxsMjNYUygGkjhjvi+0CW4R0ZwMrFTnyGlTXgaHfPaQYMoNf8QG/YACYZDMLSR0iiAb3TM3ncAU8DeqUv4WENPA3obVbUOwBPA46l3JP38DsD6AV78ucleBqw5vt2dIirTQN6/bPk67fo4AfYyDhzzYZaMTBzGtA7upMBrA8D+DY2q7J+A29DA5uB8c0uzUAK6/Opq/ekt+x7tCVlvSurNxNuSbXyw3qbtkEKbPvI41vaPinQcr4gzwAf0qrvLbMhDa/Ho9sJh5QRmSdGe7hkepb0LNczpGe47pLucl2QLpjuPkVdXTJ9lvRZrs+QPsP1HOk5rk+TPs11yuvyvC7ldXlel/K6PK9LeV2e16W8Ls8rKK/geQXlFTyvoLyC5xWUV/C8gvIKnldQXsHzCsoreF5BeQXPKyiv4HkF5VWXfFnmvaUXtCzjq07c2ph8p6j7aaekgJu30iPPANsp5BngQ3q+SgMKa7+T2vVfAwqru2F9Izzsmiori+puHNeDqc5oY75cXClwM77akiVokIWFN8t++vj5KWfGdnXb1W1Xd2xXn7ir2+OTjk/1j8Ken/b8tOenPT/tV5H9KoJL+1X0H7TurG3dtnXb1u081tZt+6Ttk4+wT/6jhrX+B8eBrnOCGwAA',
  17. filter_url: "&class={{fl.class}}&area={{fl.area}}&year={{fl.year}}&lang={{fl.lang}}&by={{fl.by}}",
  18. filter_def: "",
  19. filter_def: {},
  20. detailUrl: '/index.php/vod/detail/id/fyid.html',
  21. play_parse: true,
  22. sniffer: 1,
  23. is_video: 'obj/tos|bd.xhscdn|/ugc/',
  24. lazy: $js.toString(() => {
  25. input = {
  26. parse: 1,
  27. url: input,
  28. //js:'try{let urls=Array.from(document.querySelectorAll("iframe")).filter(x=>x.src.includes("?url="));if(urls){location.href=urls[0].src}}catch{}document.querySelector("button").click()',
  29. js: 'try{location.href=document.querySelector("#playleft iframe").src}catch{}document.querySelector("button.swal-button--confirm").click()',
  30. parse_extra: '&is_pc=1&custom_regex=' + rule.is_video,
  31. }
  32. }),
  33. limit: 6,
  34. 推荐: '.border-box.public-r .public-list-box:gt(4);a&&title;img&&data-src;.public-list-prb&&Text;a&&href',
  35. 一级: $js.toString(() => {
  36. let body = input.split("#")[1];
  37. let t = Math.round(new Date / 1e3).toString();
  38. let key = md5("DS" + t + "DCC147D11943AF75");
  39. let url = input.split("#")[0];
  40. body = body + "&time=" + t + "&key=" + key;
  41. print(body);
  42. fetch_params.body = body;
  43. let html = post(url, fetch_params);
  44. let data = JSON.parse(html);
  45. VODS = data.list.map(function (it) {
  46. it.vod_pic = urljoin2(input.split("/i")[0], it.vod_pic);
  47. return it
  48. });
  49. }),
  50. 二级: {
  51. title: '.slide-info-title&&Text;.slide-info:eq(3)--strong&&Text',
  52. img: '.lazy&&data-src',
  53. desc: '.fraction&&Text;.slide-info-remarks:eq(1)&&Text;.slide-info-remarks:eq(2)&&Text;.slide-info:eq(2)--strong&&Text;.slide-info:eq(1)--strong&&Text',
  54. content: '#height_limit&&Text',
  55. tabs: '.anthology.wow.fadeInUp.animated&&.swiper-wrapper&&a',
  56. tab_text: '.swiper-slide&&Text',
  57. lists: '.anthology-list-box:eq(#id) li',
  58. },
  59. //搜索: 'json:list;name;pic;;id',
  60. 搜索: $js.toString(() => {
  61. let html = fetch(input);
  62. let list = pdfa(html, ".public-list-box");
  63. VODS = list.map(x => {
  64. return {
  65. vod_name: pdfh(x, ".thumb-txt&&Text"),
  66. vod_pic: pdfh(x, ".lazy&&data-src"),
  67. vod_remarks: pdfh(x, ".public-list-prb&&Text"),
  68. vod_content: pdfh(x, ".thumb-blurb&&Text"),
  69. vod_id: pdfh(x, "a&&href")
  70. }
  71. });
  72. }),
  73. 图片替换: '&=>&'
  74. }